package com.ydgg.ltar.mapper;

import com.ydgg.ltar.model.Admin;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface AdminMapper {

	int deleteByPrimaryKey(Long id);

    int insert(Admin record);

    Admin selectByPrimaryKey(Long id);

    List<Admin> selectAll();

    int updateByPrimaryKey(Admin record);
    
    List<Map<String,Object>> selectByPage(Map<String, Object> param);
    
	List<Admin> loginAdmin(String telphone);
    
	List<Admin> selectByWhere(@Param("where")String where );
}